import React from "react";
import ReactDOM from "react-dom";

class A extends React.Component {

    constructor(props) {
        super(props)
    }

    render() {
        return (
            <div style={{ width: '150px', height: '60px', backgroundColor: 'orangered' }}>
                <p>如果有token则打印出来:</p>
                {
                    this.props.token && <div>{this.props.token}</div>
                }
            </div>
        )
    }
}

export default A